import request from '../utils/request'

// login
export function login(data) {
	return request({
		loading: true,
		url: '/app/user/loginPwd',
		method: 'post',
		data
	})
}

// login
export function logout(params) {
	return request({
		loading: true,
		url: '/app/user/logout',
		method: 'get',
		params
	})
}
// userinfo
export function getMyUser(params) {
	return request({
		url: '/app/user/info',
		method: 'get',
		params
	})
}

//日志
export function log(data) {
	return request({
		loading: false,
		url: '/app/device/log',
		method: 'post',
		data
	})
}

export function clientCheck(data) {
	return request({
		loading: false,
		url: '/app/client/check',
		method: 'post',
		data
	})
}

export function clientAuth(data) {
	return request({
		loading: false,
		url: '/app/client/auth',
		method: 'post',
		data
	})
}
